package com.xinchao.ck_mips.constant;

import android.os.Environment;

import java.io.File;

/*
 *Created by xiaoqiang on 2018/8/20.
 */
public class DeviceConstant {

    public static final String qiangTag = "_device_";
    public static final String PATH_ROOT = Environment.getExternalStorageDirectory().getPath() + "/DV";
    public static final String APP_CRASH_PATH = PATH_ROOT + File.separator + "crash";//崩溃日志存放地址
    public static final String PATH_FIRMWARE = PATH_ROOT + File.separator + "firmware";
    public static final String APP_MACHINE_CODE_FILE_PATH = PATH_ROOT + File.separator + "device.machine_code";//缓存机器码文件

    public static final String DEFAULT_MACHINE_ID = "A00000000";//默认机器码
    public static final int[] DEFAULT_ON_OFF = new int[]{6,30,22,0};//默认开关机时间
    public static final int DEFAULT_VOLUME = 20;//默认音量

    public static final String COLUMN_DEVICE= "device";//默认开机小时列名key
    public static final String COLUMN_CLEAR_POWER = "hasClearPower";//清除开关机状态列名key
    public static final String COLUMN_ON_H = "on_h";//默认开机小时列名key
    public static final String COLUMN_ON_M = "on_m";//默认开机分钟列名key
    public static final String COLUMN_OFF_H = "off_h";//默认关机小时列名key
    public static final String COLUMN_OFF_M = "off_m";//默认关机分钟列名key
    public static final String COLUMN_MACHINE_ID = "machine_id";//机器码列名key
    public static final String COLUMN_MACHINE_CODE = "machine_code";//机器码列名key
    public static final String COLUMN_MACHINE_VOLUME = "machine_volume";//默认声音列名key
    public static final String COLUMN_MACHINE_TOKEN = "token";

    public static final String DEVICE_OPEN_CLOSE = "device_open_close";//
    public static final String DEVICE_VOLUME = "device_volume";//
    public static final String OPEN_SCREEN = "open_screen";
    public static final String CLOSE_SCREEN = "close_screen";
    public static final boolean crashLogOpen = true; //开启crash日志
    public static final String APP_WIFI_PROBE = PATH_ROOT + File.separator + "wifi_probe";//wifi探针存储数据

    public static String deviceId = "";
    public static String deiceCode = "";
    public static String token = "";
    public static final String IS_CHANGE_VOLUME = "volumeChange";//声音大小改变

    // 工作日类型
    public static final String ALL_DAYS="all_days";
    public static final String WORKING_DAYS="working_days";
    public static final String NONE_WORKING_DAYS="none_working_days";
    public static final String CUSTOM_DAYS="custom_days";

}
